/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fwdisp.gui.tabs.statistics;

import fwdisp.gui.moduls.SecRowPanel;
import java.awt.BorderLayout;
import java.awt.Color;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;

/**
 *
 * @author rbs
 */
public class MonthlyStatisticPanel extends SecRowPanel{

    public MonthlyStatisticPanel() {
        setName("Monate");
        setLayout(new BorderLayout());

        
        DefaultCategoryDataset dataset = new DefaultCategoryDataset();
        dataset.addValue(17,    "", "Mai");
        dataset.addValue(15,    "", "Jun");
        dataset.addValue(15,    "", "Jul");
        dataset.addValue(12,    "", "Aug");
        dataset.addValue(9,     "", "Sep");
        dataset.addValue(8,     "", "Okt");
        dataset.addValue(10,    "", "Nov");
        dataset.addValue(5,     "", "Dez");
        dataset.addValue(13,    "", "Apr");
        dataset.addValue(20,    "", "Jan");
        dataset.addValue(19,    "", "Feb");
        dataset.addValue(12,    "", "Mär");
        dataset.addValue(13,    "", "Apr");


       JFreeChart chart = ChartFactory.createBarChart3D("Monatsübersicht",
               "Monat", "Einsätze", dataset,
               PlotOrientation.VERTICAL, false, false, false);

       chart.setBackgroundPaint(getBackground());
       ChartPanel panel = new ChartPanel(chart);
       panel.setPopupMenu(null);

       add(panel, BorderLayout.CENTER);
    }


}
